
Last chance! 50% off unlimited learning
Sale ends in
%nin%
is a convenience operator:
x %nin% table
is equivalent to
!(x %in% table).
x %nin% table
the values to be matched
a values to be match against
A logical vector
# NOT RUN {
x <- sample(1:6,12,replace=TRUE)
x %in% 1:3
x %nin% 1:3
# }
Run the code above in your browser using DataLab